﻿using MCPlatform.Models;
using MCPlatform.UI.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MCPlatform.ViewModels.Product
{
    public class CreateProductViewModel: ViewModelBase
    {		
		public ProductModel CreateProductModel
        {
			get => _CreateProductModel;

            set 
			{
                Set(ref _CreateProductModel, value);
            }
		}
        private ProductModel _CreateProductModel = new ProductModel();


        public ProductModel? Product { get; set; }


        public void Create()
        {
            Product = CreateProductModel;
            this.TryCloseAsync();
        }

    }
}
